package com.xue.apitest.testcases;
import com.xue.apitest.constant.API;
import com.xue.apitest.constant.Cases;
import com.xue.apitest.utils.ExcelUtils;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;

public class AddUserCase extends BaseCase{

    @Test(dataProvider = "data", description = "添加用户测试用例")
    public void testAddUser(API api, Cases cases){
        System.out.println(api+":"+cases);
        System.out.println(execute(api, cases));
    }

    @DataProvider(name= "data")
    public Object[][] data(){
        return ExcelUtils.getAPIAndCasesByAPIId("1");
    }
}
